package autosession

import (
	"context"
)

type Options struct {
	MaxAge    int
	Inspector Inspector
}

type WritterFunc func(ctx context.Context, name, value string) error

type HandlerOption func(opt *Options)

func WithInspector(inspector Inspector) HandlerOption {
	return func(opt *Options) {
		opt.Inspector = inspector
	}
}

func WithMaxAge(maxAge int) HandlerOption {
	return func(opt *Options) {
		opt.MaxAge = maxAge
	}
}
